-
Notifications
You must be signed in to change notification settings - Fork 24.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(aio): fix window title for Home page #20440
Conversation
The first commit fixes the issue by replacing I prefer the second approach. Left them both for reference. I'll squash the commits before merging if we decide to go with the second one. |
You can preview 34bf92c at https://pr20440-34bf92c.ngbuilds.io/. |
The CircleCI linting error is not related to this PR (comes from master). |
properties: {className: ['material-icons']}, | ||
children: [{ type: 'text', value: 'link' }] | ||
} | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should content be an array? Was this a mistake in the original on my part?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I see that in woorm's version he wraps the content in an array.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - let's go with option 2 (and squash)
properties: {className: ['material-icons']}, | ||
children: [{ type: 'text', value: 'link' }] | ||
} | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I see that in woorm's version he wraps the content in an array.
Using `display: none` on the `<h1>` causes `innerText` to not work as expected and include the icon ligature (`link`) in the title. This caused the window title on the angular.io Home page to appear as "Angular - link". This commit fixes it by not generating anchors at all for headings with the `no-anchor` class. Fixes angular#20427
34bf92c
to
8b3f6c5
Compare
*squash* |
You can preview 8b3f6c5 at https://pr20440-8b3f6c5.ngbuilds.io/. |
Using `display: none` on the `<h1>` causes `innerText` to not work as expected and include the icon ligature (`link`) in the title. This caused the window title on the angular.io Home page to appear as "Angular - link". This commit fixes it by not generating anchors at all for headings with the `no-anchor` class. Fixes #20427 PR Close #20440
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR Checklist
Docs have been added / updated (for bug fixes / features)PR Type
What is the current behavior?
Angular - link
appears as the window title on the angular.io Home page.Issue Number: #20427
What is the new behavior?
Angular
appears as the window title on the angular.io Home page.See #20427 and the commit messages for more details.
Does this PR introduce a breaking change?
Other information
Fixes #20427.